let vue=new Vue({
   el:'#main-container',
    data:{
       worker:{}
    },
    methods:{
       showDetail:function (id) {
           axios({
               url:`work/admin/showDetail/${id}`
           }).then(rs=>{
               this.worker=rs.data;
               console.log(this.worker);
           }).catch(error=>{
               layer.msg(error.message)
           })
       }
    },
    created:function () {
        this.showDetail(parent.layer.id)
    }
});